/* LoginPage.css - 登录页面组件样式（包含封禁功能） */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.login-form-container {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-xl);
}

.login-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.login-title h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.login-title p {
    color: var(--text-gray-light);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* ========== 封禁状态样式 ========== */

/* 封禁消息样式 */
.message.ban {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    text-align: center;
    animation: banAlert 2s infinite alternate;
}

@keyframes banAlert {
    from {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    }
    to {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    }
}

/* 封禁信息容器 */
.ban-info-container {
    background: linear-gradient(135deg,
    rgba(239, 68, 68, 0.1),
    rgba(220, 38, 38, 0.05)
    );
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    animation: banGlow 3s infinite alternate;
}

@keyframes banGlow {
    from {
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    }
    to {
        border-color: rgba(239, 68, 68, 0.5);
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
    }
}

.ban-info-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.ban-icon {
    font-size: 2rem;
    animation: banShake 1s infinite;
}

@keyframes banShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.ban-info-header h3 {
    color: #fca5a5;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.ban-info-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.ban-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(239, 68, 68, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.ban-label {
    color: #f87171;
    font-weight: 600;
    font-size: 0.9rem;
}

.ban-value {
    color: #fca5a5;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.ban-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(239, 68, 68, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: var(--spacing-sm);
}

.ban-contact-icon {
    font-size: 1.1rem;
}

/* 禁用状态样式 */
.form-input:disabled {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.2);
    color: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-input:disabled::placeholder {
    color: var(--text-gray);
    opacity: 0.5;
}

.password-toggle:disabled {
    color: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.verify-btn:disabled {
    background: var(--bg-glass);
    color: var(--text-gray);
    border: 1px solid var(--border-glass);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-disabled {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.3), rgba(75, 85, 99, 0.2)) !important;
    color: var(--text-gray) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    border: 1px solid rgba(107, 114, 128, 0.3) !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 封禁状态下的页脚提示 */
.ban-footer-tip {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.ban-footer-tip p {
    color: #93c5fd;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

/* ========== 原有样式继续 ========== */

/* 密码输入框容器 */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.password-toggle:hover:not(:disabled) {
    color: var(--text-white);
}

/* 验证码输入组 */
.verify-group {
    display: flex;
    gap: var(--spacing-sm);
}

.verify-input {
    flex: 1;
}

.verify-btn {
    padding: 0.75rem var(--spacing-md);
    background: var(--primary-purple);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.verify-btn:hover:not(:disabled) {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

/* 页面底部链接 */
.login-footer {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.login-footer p {
    color: var(--text-gray-light);
}

.form-link {
    margin-left: var(--spacing-xs);
    color: var(--purple-light);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.form-link:hover {
    color: var(--purple-accent);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .login-container {
        padding: var(--spacing-md);
        min-height: calc(100vh - 140px);
    }

    .verify-group {
        flex-direction: column;
    }

    .verify-btn {
        width: 100%;
    }

    .login-title h1 {
        font-size: 1.75rem;
    }

    /* 封禁信息响应式 */
    .ban-detail-item {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }

    .ban-value {
        max-width: 100%;
        text-align: center;
    }

    .ban-info-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .ban-contact {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: var(--spacing-md);
    }

    .login-title h1 {
        font-size: 1.5rem;
    }

    .ban-info-container {
        padding: var(--spacing-md);
    }

    .ban-info-header h3 {
        font-size: 1.25rem;
    }

    .ban-icon {
        font-size: 1.75rem;
    }

    .ban-detail-item {
        padding: var(--spacing-sm);
    }

    .ban-label,
    .ban-value {
        font-size: 0.85rem;
    }

    .ban-contact {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }
}